package cn.imvc.app.repositories;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.imvc.app.entities.Activity;
import cn.imvc.data.jpa.repository.ISqlExecutor;

public interface ActivityRepository extends JpaRepository< Activity, Integer>, ISqlExecutor< Activity> {
//	@Query("select max(limitMoney) limitMoney,ac from  Activity ac where ac.limitMoney<=?1 and ac.startDate<=?2 and ac.endDate>=?2 and state =?3  group by type ")
//	List<Activity> findByOrderAmount(Integer orderAmount,Date nowDate,Byte state);  
}
